﻿<UserControl x:Class="Black.Minecraft.Editor.Views.OptionsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:vm="clr-namespace:Black.Minecraft.Editor.ViewModels"
             Width="500"
             Height="150">

    <Border Background="White"
            BorderBrush="Gray"
            BorderThickness="1">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="80" />
                <RowDefinition Height="*" />
                <RowDefinition Height="50" />
            </Grid.RowDefinitions>

            <!--  Options globales  -->

            <GroupBox Grid.Row="0"
                      Margin="5"
                      FontWeight="Bold"
                      Header="Application">
                <StackPanel Orientation="Horizontal">
                    <CheckBox Margin="15"
                              Content="Make a backup file before save"
                              FontWeight="Normal"
                              IsChecked="{Binding Options.BackupFile,
                                                  Mode=TwoWay}" />
                    <CheckBox Margin="15"
                              Content="Load last opened file at startup"
                              FontWeight="Normal"
                              IsChecked="{Binding Options.LoadLastFile,
                                                  Mode=TwoWay}" />
                </StackPanel>

            </GroupBox>

            <!--  Bouton d'actions  -->

            <Button Grid.Row="2"
                    Width="90"
                    Height="30"
                    Margin="0,0,20,20"
                    HorizontalAlignment="Right"
                    VerticalAlignment="Bottom"
                    Command="{Binding CloseCommand}"
                    Content="Close"
                    IsCancel="True" />

        </Grid>
    </Border>

</UserControl>
